package com.lm.activiti.boot.tools.schedule;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author lm_jcf
 * @date 2020/3/23 11:14
 */
//@SpringBootApplication
@EnableScheduling
@Configuration
public class SpringScheduleDemo {

    @Scheduled(fixedRate = 2000)
    public void timing(){
        System.out.println("测试");
    }

    public static void main(String[] args) {
        SpringApplication.run(SpringScheduleDemo.class);
    }
}
